from django.conf.urls import url
from apps.coffee_admin import views
from rest_framework import routers

coffeeAdmin = routers.DefaultRouter()

coffeeAdmin.register(r"statistics", views.OrderStatisticsViewSet, base_name="admin_statistics")  # 首页统计
# coffeeAdmin.register(r"channel", views.SuperUserChannelViewSet, base_name="admin_channel")  # 超级用户查看商户列表
coffeeAdmin.register(r"store", views.StoreViewSet, base_name="admin_store")  # 门店列表
coffeeAdmin.register(r"orders", views.OrdersViewSet, base_name="admin_orders")  # 查看订单
coffeeAdmin.register(r"userOperation", views.UserOperationViewSet, base_name="admin_user_operation")  # 用户操作
coffeeAdmin.register(r"channel", views.ChannelViewSet, base_name="admin_channel")  # channel 列表
coffeeAdmin.register(r"price", views.PriceViewSet, base_name="admin_price")  # channel 产品价格列表
coffeeAdmin.register(r"orderStatus", views.OrderStatusViewSet, base_name="admin_order_status")  # 订单状态 列表
coffeeAdmin.register(r"users", views.AddUserViewSet, base_name="admin_users")  # 用户数据
coffeeAdmin.register(r"usersSource", views.UserSourceViewSet, base_name="admin_users_source")  # 用户来源
coffeeAdmin.register(r"discountSource", views.DiscountSourceViewSet, base_name="admin_discount_source")  # 优惠来源

# urlpatterns = [
#     url(r'^resultNotice$', views.CoffeeNoticeView.as_view(), name='CoffeeNoticeView'),  # 咖啡机结果通知
#     url(r'^KeyValue$', views.KeyValue.as_view(), name='KeyValue'),  # 拿到key
#     url(r'^CouponTypeList$', views.CouponTypeList.as_view(), name='CouponTypeList'),  # 优惠券类型列表
#     url(r'^refundCoffee$', views.refund_coffee, name='refundCoffee'),  # 咖啡退款
#     url(r'^refund_card_bag$', views.refund_card_bag, name='refund_card_bag'),  # 卡包退款
# ]
